#ifndef GETTRAFF_H
#define GETTRAFF_H

#include <QFile>
#include <QDebug>

struct TraffData
{
    int rx;
    int tx;
    bool ok;
};

class GetTraff : public QObject
{
    Q_OBJECT
    QString iface;
    int rx0, tx0;
public:
    explicit GetTraff(const QString &iface, bool resetValue = false, QObject *parent = 0);
    TraffData getCurrBytes();
    TraffData getCurrBytesAbs();
    QString ifaceExists() const;
    
signals:
    
public slots:
    
};

#endif // GETTRAFF_H
